package com.muatocroi.tornado;

public class CommandPowerpoint extends CommandSignal{
	public CommandPowerpoint()
	{
		cmdCode = 104;
	}
	public static CommandPowerpoint checkServerStatus()
	{
		CommandPowerpoint c = new CommandPowerpoint();
		c.exCode = 0;
		return c;
	}
	public static CommandPowerpoint Control(VirtualKeyCode keyCode)
	{
		CommandPowerpoint c = new CommandPowerpoint();
		c.exCode = 1;
		c.arg = keyCode.Code();
		return c;
	}
	public static CommandPowerpoint Lazer(boolean isOn)
	{
		CommandPowerpoint c = new CommandPowerpoint();
		c.exCode = 2;
		if (isOn)
			c.arg = 1;
		else
			c.arg = 0;
		return c;
	}
	
	public static CommandPowerpoint BlackScreen()
	{
		CommandPowerpoint c = new CommandPowerpoint();
		c.exCode = 1;
		c.arg = VirtualKeyCode.VK_B.Code();
		return c;
	}
	
	public static CommandPowerpoint ShowAllSlide()
	{
		CommandPowerpoint c = new CommandPowerpoint();
		c.exCode = 1;
		c.arg = VirtualKeyCode.VK_G.Code();
		return c;		
	}
	public static CommandPowerpoint GoToSlide(int slideNo)
	{
		CommandPowerpoint c = new CommandPowerpoint();
		c.exCode = 3;
		c.arg = slideNo;
		return c;	
	}
		
}
